#ifndef CPPTEMPLATE_H
#define  CPPTEMPLATE_H
#include <cstring>
#include <iostream>

using namespace std;

class Employee
{
public:
	void setValue(const string & n, double s )
	{
		name = n; 
		salary = s;
	}
	const string & getName() const;

	void print(ostream& out) const;
	bool operator<(const Employee & rhs) const;
	
private:
	string name;
	double salary;
};

//ostream & operator<<(ostream &out, const Employee & rhs);

const string & Employee::getName() const
{
	return name;
}
void Employee::print(ostream& out) const
{
	out<<name<<"("<<salary<<")";
}
bool Employee::operator<(const Employee & rhs) const
{
	return salary ;
}

ostream & operator<<(ostream &out, const Employee & rhs)
{
	rhs.print(out);
	return out;
}

#endif
